package com.soda.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.soda.bean.Menu;
import com.soda.bean.Role;
import com.soda.util.PageInfo;
import com.soda.util.SelectRoleInfo;

public interface RoleDao {

	Role getRoleById(int id);

	List<Role> getAllRole();

	int deleteFmenutoRole(int rolId);

	int deleteMenuToRole(int rolId);

	int editRoleToFmenu(@Param("rolId")int rolId, @Param("i")int i);

	void addRoleToMenu(@Param("rolId")int rolId,@Param("parseInt") int parseInt);

	int editRoleInfo(@Param("rolId")int rolId,@Param("rolName")String rolName, @Param("rolState")int rolState, @Param("rolRemark")String rolRemark);

	void editState(@Param("id")int id, @Param("state")int state);

	int deleteById(int id);

	int getMaxId();

	int getAllCount(SelectRoleInfo sri);

	List<Role> getAllRoleBySelectInfo(Map<String,Object> map);

	int ajaxrolename(String rolname);

	String getRoleNameById(int id);


}
